
<script>
import axios from "axios";
export default {
  name: "App",
  data() {
    return {
      count: 100,
      roomList: [],
    };
  },
  mounted() {
    axios("/api/RoomApi/live").then((res) => {
      console.log(res);
      this.roomList = res.data.data;
    });
  },
};
</script>
<template>
  <div>
    <h1>vue + webpack + {{ count }}</h1>

    <button @click="count++">点击增加</button>
    <ul>
      <li v-for="item in roomList" :key="item.owner_uid">{{ item.nickname }}</li>
    </ul>
  </div>
</template>
